package br.com.rubrol.webservice;

import javax.ws.rs.Path;

import org.hibernate.Query;
import org.hibernate.Session;

import br.com.rubrol.model.Transportadora;

@Path("/transportadora")
public class TransportadoraWS extends GenericWS<Transportadora> {

	@Override
	protected Query getQuery(Session session, int codigo) {
		Query hql = session.createQuery("from Transportadora where codigo=:cod");
		hql.setInteger("cod", codigo);

		return hql;
	}
}
